home *** CD-ROM | disk | FTP | other *** search
/ The CICA Windows Explosion! / The CICA Windows Explosion! - Disc 2.iso / misc / gs261src.zip / gcc-head.mak < prev    next >
Makefile  |  1993-05-13  |  5KB  |  143 lines

  1. #    Copyright (C) 1989, 1992, 1993 Aladdin Enterprises.  All rights reserved.
  2. #
  3. # This file is part of Ghostscript.
  4. #
  5. # Ghostscript is distributed in the hope that it will be useful, but
  6. # WITHOUT ANY WARRANTY.  No author or distributor accepts responsibility
  7. # to anyone for the consequences of using it or for whether it serves any
  8. # particular purpose or works at all, unless he says so in writing.  Refer
  9. # to the Ghostscript General Public License for full details.
  10. #
  11. # Everyone is granted permission to copy, modify and redistribute
  12. # Ghostscript, but only under the conditions described in the Ghostscript
  13. # General Public License.  A copy of this license is supposed to have been
  14. # given to you along with Ghostscript so you can know your rights and
  15. # responsibilities.  It should be in a file named COPYING.  Among other
  16. # things, the copyright notice and this notice must be preserved on all
  17. # copies.
  18.  
  19. # makefile for Ghostscript, Unix/gcc/X11 configuration.
  20. # Note: this makefile assumes you are using gcc in ANSI mode.
  21.  
  22. # ------------------------------- Options ------------------------------- #
  23.  
  24. ####### The following are the only parts of the file you should need to edit.
  25.  
  26. # ------ Generic options ------ #
  27.  
  28. # Define the installation commands and target directories for
  29. # executables and files.  Only relevant to `make install'.
  30.  
  31. INSTALL = install -c
  32. INSTALL_PROGRAM = $(INSTALL) -m 775
  33. INSTALL_DATA = $(INSTALL) -m 664
  34.  
  35. prefix = /usr/local
  36. exec_prefix = $(prefix)
  37. bindir = $(exec_prefix)/bin
  38. datadir = $(prefix)/lib
  39. gsdatadir = $(datadir)/ghostscript
  40.  
  41. # Define the default directory/ies for the runtime
  42. # initialization and font files.  Separate multiple directories with a :.
  43.  
  44. GS_LIB_DEFAULT=$(gsdatadir):$(gsdatadir)/fonts
  45.  
  46. # Define the name of the Ghostscript initialization file.
  47. # (There is no reason to change this.)
  48.  
  49. GS_INIT=gs_init.ps
  50.  
  51. # Choose generic configuration options.
  52.  
  53. # -DDEBUG
  54. #    includes debugging features (-Z switch) in the code.
  55. #      Code runs substantially slower even if no debugging switches
  56. #      are set.
  57. # -DNOPRIVATE
  58. #    makes private (static) procedures and variables public,
  59. #      so they are visible to the debugger and profiler.
  60. #      No execution time or space penalty.
  61.  
  62. GENOPT=
  63.  
  64. # Define the name of the executable file.
  65.  
  66. GS=gs
  67.  
  68. # ------ Platform-specific options ------ #
  69.  
  70. # Define the name of the C compiler.
  71.  
  72. CC=gcc
  73.  
  74. # Define the other compilation flags.
  75. # Add -DBSD4_2 for 4.2bsd systems.
  76. # Add -DUSG (GNU convention) or -DSYSV for System V or DG/UX.
  77. # Add -DSYSV -D__SVR3 for SCO ODT, ISC Unix 2.2 or before,
  78. #   or any System III Unix, or System V release 3-or-older Unix.
  79. # Add -DSVR4 (not -DSYSV) for System V release 4.
  80. # XCFLAGS can be set from the command line.
  81. # We don't include -ansi, because this gets in the way of the platform-
  82. #   specific stuff that <math.h> typically needs; nevertheless, we expect
  83. #   gcc to accept ANSI-style function prototypes and function definitions.
  84.  
  85. CFLAGS=-g -O $(XCFLAGS)
  86.  
  87. # Define platform flags for ld.
  88. # SunOS and some others want -X; Ultrix wants -x.
  89. # SunOS 4.n may need -Bstatic.
  90. # XLDFLAGS can be set from the command line.
  91.  
  92. LDFLAGS=$(XLDFLAGS)
  93.  
  94. # Define any extra libraries to link into the executable.
  95. # ISC Unix 2.2 wants -linet.
  96. # SCO Unix needs -lsocket if you aren't including the X11 driver.
  97. # (Libraries required by individual drivers are handled automatically.)
  98.  
  99. EXTRALIBS=
  100.  
  101. # Define the include switch(es) for the X11 header files.
  102. # This can be null if handled in some other way (e.g., the files are
  103. # in /usr/include, or the directory is supplied by an environment variable).
  104. # Note that x_.h expects to find the header files in $(XINCLUDE)/X11,
  105. # not in $(XINCLUDE).
  106.  
  107. XINCLUDE=-I/usr/local/X/include
  108.  
  109. # Define the directory/ies for the X11 library files.
  110. # This can be null if these files are in the default linker search path.
  111.  
  112. XLIBDIRS=-L/usr/local/X/lib
  113.  
  114. # ------ Devices and features ------ #
  115.  
  116. # Choose the language feature(s) to include.  See gs.mak for details.
  117.  
  118. FEATURE_DEVS=filter.dev dps.dev level2.dev
  119.  
  120. # Choose the device(s) to include.  See devs.mak for details.
  121.  
  122. DEVICE_DEVS=x11.dev
  123. DEVICE_DEVS9=pbm.dev pbmraw.dev pgm.dev pgmraw.dev ppm.dev ppmraw.dev bit.dev
  124.  
  125. # ---------------------------- End of options --------------------------- #
  126.  
  127. # Define the name of the makefile -- used in dependencies.
  128.  
  129. MAKEFILE=unix-gcc.mak
  130.  
  131. # Define the ANSI-to-K&R dependency.  (gcc accepts ANSI syntax.)
  132.  
  133. AK=
  134.  
  135. # Define the compilation rules and flags.
  136.  
  137. CCC=$(CC) $(CCFLAGS) -c
  138.  
  139. # --------------------------- Generic makefile ---------------------------- #
  140.  
  141. # The remainder of the makefile (unixhead.mak, gs.mak, devs.mak, unixtail.mak)
  142. # is generic.  tar_cat concatenates all these together.
  143.